<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="UTF-8">
		<title>竖向导航栏</title>
		<style type="text/css">
			*{margin: 0;padding: 0;font-size: 20px}
			ul{list-style: none;width: 300px;}
			a{color: #333;text-decoration: none;display: block;text-align: center;}
			/*display: block  将a标签设置为块状元素*/
		
			.mybar li a{width: 100px;height: 25px;background-color: #fcc;margin-bottom: 1px;text-indent: 10px;}
			/*text-indent: 10px;  文本缩进*/
			
			.mybar li a:hover{ background-color:#F60; color:#fff}
			.mybar li a.a01{width: 300px}
		</style>
	</head>
	<body>
		<ul class="mybar">
			<li><a class="a01" href="#">春款衬衫</a></li>
			<li><a href="#">连衣裙</a></li>
			<li><a href="#">风衣</a></li>
			<li><a href="#">半身裙</a></li>
			<li><a href="#">打底裤</a></li>
		</ul>
	</body>
</html>